package com.wjj.service.hystrix;

import com.wjj.dto.StudentDTO;
import com.wjj.service.StudentInternalService;
import java.util.Arrays;
import java.util.List;
import org.springframework.stereotype.Component;

/**
 * @Description
 * @Author junjun Wang
 * @Date Create in 16:02 2023/12/8
 **/
@Component
public class StudentInternalServiceHystrix implements StudentInternalService {

	@Override
	public List<StudentDTO> getStudentsByClassId(Integer classId) {
		return Arrays.asList(StudentDTO.builder()
				.studentId(0)
				.studentName("Hystrix Demote Student")
				.build());
	}
}
